#!/bin/bash

# 设置UTF-8编码
export JAVA_OPTS="-Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8"

# 启动应用程序
echo "正在启动Update Service..."
java $JAVA_OPTS -jar lib/update-service-1.0.0.jar > logs/update-service.log 2>&1 &

# 记录进程ID
PID=$!
echo $PID > pid.txt
echo "Update Service已启动，进程ID: $PID"